<template>
  <div class="courseBox">
    <EnterBig
      :src="imgsrc"
      :width="280"
      :height="210"
    ></EnterBig>

    <div class="courseTitle">{{courseTitle}}</div>
    <div class="wacthNumber">{{wacthNumber}}人学习</div>
    <div class="autor">
      <img
        :src="autorimgsrc"
        alt=""
      />
      <span>{{autorName}}</span>
    </div>
  </div>
</template>

<script>
import EnterBig from "@/components/ZComponents/enterBig.vue";
export default {
  components: {
    EnterBig,
  },
  props:['imgsrc','courseTitle','wacthNumber','autorimgsrc','autorName']
};
</script>

<style lang="scss" scoped>
.courseBox {
  cursor: pointer;
  display: inline-block;
  position: relative;
  width: 280px;
  height: 350px;
  margin-top: 20px;
  margin-left: 20px;
  background-color: #fff;
  border-radius: 5px;
  .courseTitle {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 10px;
    margin-bottom: 15px;
  }
  .wacthNumber {
    color: #b1b5b9;
    font-size: 14px;
    padding: 10px;

  }
  .autor {
    line-height: 23px;
    color: #525a67;
    font-size: 12px;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    padding: 10px;
    border-top: 1px solid rgb(228, 228, 228);
    img{
      margin-right:10px ;
      width: 24px;
      height: 24px;
      border-radius: 12px;
      vertical-align:middle
    }
  }
}
</style>